import request from '@/utils/request'

// 查询盘点计划列表
export function listInventoryPlan(query) {
  return request({
    url: '/wms/inventoryPlan/list',
    method: 'get',
    params: query
  })
}

// 初始化
export function initBean(query) {
    return request({
        url: '/wms/inventoryPlan/initBean',
        method: 'post',
        data: query
    })
}

// 查询盘点计划详细
export function getInventoryPlan(id) {
  return request({
    url: '/wms/inventoryPlan/' + id,
    method: 'get'
  })
}

// 新增盘点计划
export function addInventoryPlan(data) {
  return request({
    url: '/wms/inventoryPlan',
    method: 'post',
    data: data
  })
}

// 修改盘点计划
export function updateInventoryPlan(data) {
  return request({
    url: '/wms/inventoryPlan',
    method: 'put',
    data: data
  })
}

// 删除盘点计划
export function delInventoryPlan(id) {
  return request({
    url: '/wms/inventoryPlan/' + id,
    method: 'delete'
  })
}

export function dtlList(query) {
    return request({
        url: '/wms/inventoryPlan/dtlList',
        method: 'post',
        data: query
    })
}

export function removeDtl(query) {
  return request({
    url: '/wms/inventoryPlan/removeDtl',
    method: 'post',
    data: query
  })
}
